package br.com.usjt.tcc.schedule.test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class Utils {

	public boolean randomBoolean() {
		List<Boolean> booleans = new ArrayList<Boolean>();

		booleans.add(true);
		booleans.add(false);
		
		Collections.shuffle(booleans);
		return booleans.get(0);
	}

	public String ramdomiza(List<String> strings) {

		Collections.shuffle(strings);
		return strings.get(0);

	}

	public Double ramdomPrice() {
		double number = Math.random();
		number = Math.round(number * 100);
		number = number / 100;
		return number;
	}
	
	public int randomInt(int min, int max) {

	    Random rand = new Random();
	    int randomNum = rand.nextInt((max - min) + 1) + min;

	    return randomNum;
	}

}
